<template>
  <div :style="{'textIndent':1.5*level+'em'}" class="optionBox">
    <template v-for="item in options">
      <el-option
        :key="item.id"
        :label="item.label"
        :value="item.id"
        :disabled="item.disabled"
      >
      <options :level="level+1" :options="item.children" v-if="item.children"></options>
      </el-option>
    </template>
  </div>
</template>

<script>
export default {
  props:["options","level"],
};
</script>

<style lang="scss" scoped>
</style>
